package com.barneyx.mshinfoplatform.web.front.user;

import com.alibaba.fastjson.JSONObject;
import com.barneyx.mshinfoplatform.common.ExResult;
import com.barneyx.mshinfoplatform.service.info.IInfoFavoriteEntityService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/front/user/favorite/")
public class InfoFavoriteController {

    @Resource
    private IInfoFavoriteEntityService favoriteService;

    /**
     * url:
     * cateid:
     * infotype:
     * info_user_id:
     * info_name:
     *
     * @param data
     * @return
     */

    @GetMapping("add")
    public ExResult<?> addFavorite(@RequestBody JSONObject data) {

        return ExResult.ofSuccess("");
    }
}
